package com.campus.backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 意见反馈表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-06-06
 */
@Getter
@Setter
@TableName("feedback")
@ApiModel(value = "Feedback对象", description = "意见反馈表")
public class Feedback extends IntegerIdBaseEntity<Feedback> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("用户类型：1-顾客，2-商户，3-配送员")
    @TableField("user_type")
    private Integer userType;

    @ApiModelProperty("反馈类型ID，关联feedback_type表")
    @TableField("type_id")
    private Long typeId;

    @ApiModelProperty("反馈内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("图片URL，多个以逗号分隔")
    @TableField("images")
    private String images;

    @ApiModelProperty("联系方式")
    @TableField("contact")
    private String contact;

    @ApiModelProperty("状态：0-未处理，1-已处理")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("处理备注")
    @TableField("handle_remark")
    private String handleRemark;

    @ApiModelProperty("处理时间")
    @TableField("handel_time")
    private LocalDateTime handelTime;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
